#
# Be sure to run `pod lib lint ADKit.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'ADKit'
  s.version          = '0.1.0'
  s.summary          = 'A short description of ADKit.'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://gitee.com/adoma/adkit'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'Adoma' => 'adomacn@163.com' }
  s.source           = { :git => 'https://gitee.com/adoma/adkit.git', :tag => s.version.to_s }

  s.ios.deployment_target = '12.0'
  s.swift_version = '5'

  s.source_files = 'ADKit/*'
  s.static_framework = true
  
  s.resource_bundles = {
    'ADKit' => 'ADKit/Asset/**/*'
  }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
   s.dependency 'SwiftyJSON'
   s.dependency 'Alamofire'
   s.dependency 'RxSwift'
   s.dependency 'RxCocoa'
   s.dependency 'NSObject+Rx'
   s.dependency 'RxGesture'
   # https://github.com/intsig171/SmartCodable
   s.dependency 'SmartCodable'
   # https://github.com/kishikawakatsumi/KeychainAccess
   s.dependency 'KeychainAccess'
   # https://github.com/hyperoslo/Cache
   s.dependency 'Cache'
   # https://github.com/jdg/MBProgressHUD/releases
   s.dependency 'MBProgressHUD', '1.0.0'
   s.dependency 'SnapKit'
   s.dependency 'Then'
   s.dependency 'DeviceKit'

   s.subspec 'Tools' do |a|
     a.source_files = 'ADKit/Tools/**/*'
   end
   
   s.subspec 'UI' do |a|
     a.source_files = 'ADKit/UI/**/*'
   end

   s.subspec 'Core' do |a|
     a.source_files = 'ADKit/Core/*'
   end
   
end
